package fpig.strings.functions

import fpig.concepts.FunctorDescription;
import fpig.lists.structures.FunList;

class FunListToTokenizedStringFunctor extends FunctorDescription{
	
	static FunctorDescription forToken(token) {
		return new FunListToTokenizedStringFunctor(token: token)
	}
 
    String token
	
	Class mappedFrom(Class a) {
		this.singleMapping(a, FunList.class, String.class)
	}
 
	Closure getFmap() {
	    fpig.strings.functions.InAndOutOfFunLists_forTokenizedStrings.withFunList(token)
	}
	
}
